﻿namespace Xoohoo.Infrastructure
{
    public interface IFormsAuthentication
    {
        /// <summary>
        /// 设置认证Cookie
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="createPersistentCookie">是否创建持久Cookie</param>
        void SetAuthCookie(string username, bool createPersistentCookie);

        /// <summary>
        /// 注销
        /// </summary>
        void SignOut();
    }
}
